package com.asa.voice.mp3.asa.decoder;

public abstract class Layer123 {
	  protected Synthesis filter;
	  
	  private AudioBuffer audioBuf;
	  
	  public Layer123(Header paramHeader, IAudio paramIAudio) {
	    this.audioBuf = new AudioBuffer(paramIAudio, 4 * paramHeader.getPcmSize());
	    this.filter = new Synthesis(this.audioBuf, paramHeader.getChannels());
	  }
	  
	  public abstract int decodeFrame(byte[] paramArrayOfbyte, int paramInt);
	  
	  public void outputAudio() {
	    this.audioBuf.output();
	  }
	  
	  public void close() {
	    this.audioBuf.flush();
	  }
}
